<?php
header("Content-type:text/html;charset=utf-8");
// error_reporting(0);
$db = new mysqli("localhost","root","","c1");
//错误编码
if($db->connect_errno){
	//输出错误信息
	exit($db->connect_error);
}
$db->query("set names utf8");

?>